package com.mingloucct.payment_ws.controller;

import com.mingloucct.payment_ws.dao.IBaobiaoDao;
import com.mingloucct.payment_ws.entity.Baobiao;
import com.mingloucct.payment_ws.service.IBaobiaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping(value = "/baobiao")
public class BaobiaoController {
    @Autowired
    private IBaobiaoService iBaobiaoService;
    @RequestMapping(value = "/readBaobiao",method = RequestMethod.POST)
    private Baobiao readBaobiao(@RequestParam("id") String id){
        Baobiao baobiao = iBaobiaoService.readBaobiao(id);
        return baobiao;
    }



}
